package com.zuoyi.io;

import java.io.InputStream;

/**
 * Author: zuo
 * Date: 2021/3/11 17:16
 * Describe:自定义 Resources 类
 */
public class Resources {
    //参数:使用端传递过来的核心配置文件的路径
    public static InputStream getResourcesAsSteam(String path){
        //
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;

    }
}
